package com.ruoyi.web.controller.demo.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆列对象 car_list
 * 
 * @author ruoyi
 * @date 2022-12-25
 */
public class CarList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆id 车辆id */
    @Excel(name = "车辆id 车辆id")
    private Long carId;

    /** 车辆名称 车辆名称 */
    @Excel(name = "车辆名称 车辆名称")
    private String name;

    /** 车辆颜色 车辆颜色 */
    @Excel(name = "车辆颜色 车辆颜色")
    private String color;

    /** 车牌 车牌号 */
    @Excel(name = "车牌 车牌号")
    private String card;

    /** 状态 车辆状态（0为无效，1为正常，2为外借，3为被删除（假删除，不然会影响到使用记录）） */
    @Excel(name = "状态 车辆状态", readConverterExp = "0=为无效，1为正常，2为外借，3为被删除（假删除，不然会影响到使用记录")
    private String status;

    /** 司机 车主id */
    private Long driver;

    /** 创建人 创建人id */
    @Excel(name = "创建人 创建人id")
    private Long creater;

    /** 创建时间 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间 创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 备注 */
    private String text;

    /** 人员信息信息 */
    private List<SysWzxUser> sysWzxUserList;

    private SysWzxUser sysWzxUser;

    private String createName;

    private String driverName;

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public SysWzxUser getSysWzxUser() {
        return sysWzxUser;
    }

    public void setSysWzxUser(SysWzxUser sysWzxUser) {
        this.sysWzxUser = sysWzxUser;
    }

    public void setCarId(Long carId)
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }
    public void setCard(String card) 
    {
        this.card = card;
    }

    public String getCard() 
    {
        return card;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDriver(Long driver) 
    {
        this.driver = driver;
    }

    public Long getDriver() 
    {
        return driver;
    }
    public void setCreater(Long creater) 
    {
        this.creater = creater;
    }

    public Long getCreater() 
    {
        return creater;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setText(String text) 
    {
        this.text = text;
    }

    public String getText() 
    {
        return text;
    }

    public List<SysWzxUser> getSysWzxUserList()
    {
        return sysWzxUserList;
    }

    public void setSysWzxUserList(List<SysWzxUser> sysWzxUserList)
    {
        this.sysWzxUserList = sysWzxUserList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carId", getCarId())
            .append("name", getName())
            .append("color", getColor())
            .append("card", getCard())
            .append("status", getStatus())
            .append("driver", getDriver())
            .append("creater", getCreater())
            .append("createdTime", getCreatedTime())
            .append("text", getText())
            .append("sysWzxUserList", getSysWzxUserList())
            .toString();
    }
}
